Latest Questions

Iterate through a nested python dict

I have a JSON file that looks like this: { "returnCode": 200, "message": "OK", “people”: [ { “details: {

"source" command inside a CSH scrip

I wrote CSH script, include the following line: bash -c 'source $file; exec csh' When running, I get the next error: bash: line 0: source: filename argument

How do I move Source Code from a local GitLab to AWS GitLab environment using automation?

As a part of my job, I have to automate Sorce code movement from development environment to Production environment. The developers push the code to GitLab that

Progress Plugin Invalid Options in vuejs

Error ValidationError: Progress Plugin Invalid Options options should NOT have additional properties options should NOT have additional properties o

How can I read UploadFile in FastAPI?

I have a FastAPI endpoint that receives a file, uploads it to s3, and then processes it. Everything works fine except for the processing, that fails with this m

Using RegEx to extract data from an anchor tag

I have the following anchor tag in an html document that I want to extract the link and the text from: <a href="https://www.catholicgallery.org/bible-drb/act

C++ map with constructor and parameter

I want to have an unordered map with a string and a std::function that call a constructor a class to make a shared_ptr. But I'm stuck, I don't know what I shoul

How to make a Walkthrough Introduction Slider in Ionic Vue Application?

I have seen most of the mobile application has an intro slider when we first time installs the app. I searched on google but all of them are old version of Ioni

Incorrect functioning of routes in Angular

When trying to navigate from 'users' to 'users/:id' like this this.router.navigate([`/users/${userId}`]); or this.router.navigate(['/users', userId]); it stay

neo4j how to use where conditionally

I have the following query: MATCH (u: User {id: '...'})-[r:EXECUTING]->(journey: Journey) WHERE r.progress > 0 AND r.progress < 100 RETURN journey; It

In DynamoDB, how to relate an entity with itself, via another key or attribute?

Let's say I have a DynamoDB table modelling two entities: people and the cities they have visited, in a many-to-many relationship. personName could be the prima

How to add custom indicator in trading view Charting library in reactjs

I have trading view charting library i'm working on it but now i want to add custom indicator in it but i don't know how to do.

How to add new pages without rebuilding an app with +150k static pages?

I have a MERN app in which I have integrated NextJS. First time with NextJS so bear with me. I have initially used SSR everywhere (getServerSideProps). Key poin

How do you fix this error: A namespace cannot directly contain members such as fields or methods [closed]

I am using unity code to make a game, and I get this error: "A namespace cannot directly contain members such as fields or methods." This is

How to make function get particular error in JS

In form, there is <input type="hidden" name="forcesave" value="0" id="forces"> which lets me avoid validator: if (\Frame\Validator::cidr($data['ip

Remove add to cart button on WooCommerce single product page if product has been purchased and show MP3 player instead

We have a WooCommerce store that sells files (MP3/MP4) to registered users and enables the user to play them in the "Downloads" section of their account (we hav

Setting X axis label name more frequently in Matplotlib

I have a dataframe like this Time(DDHHMM) True AOG Predicted AOG 5184 28:0:0.0 4.0 4.697324 5185 28:0:5.0 10.0 0.366948 518

Android compose ModalBottomSheetLayout jumps on content size change

I basically have the same problem as this post, except I'm using Jetpack Compose, instead of the old View model. It happens with any kind of content - I tested

Java selenium - timed out waiting for driver server to start

i need help , how to fix this bug , " timed out waiting for driver server to start " enter image description here i have tried many ways like changing google ve

How to get Total hits for an ES query after setting from and size field

searchSourceBuilder.query(query).sort(sb).from(fromField).size(sizeField); searchRequest.indices(elasticsearchUserIndex).source(searchSourceBuilder); SearchResp

Application Error while uploading to Heroku

For my application's backend I'm trying to host in on heroku. After creating a new app on heroku I've followed all the steps that it showed me and it was deploy

How to write a simple code to do float calculation in Python?

I would like to write a code for this calculation: 3.3+4.8*6-4/2 Here is my code: from decimal import * a = Decimal('3.3') + Decimal('4.8') * 6 b = 4 / 2 c =

Eclipse-Selenium-Extract the value from the table

I am relatively new to the Test Automation and in particular to the Selenium. I am using Selenium Web-driver, Eclipse. I can not extract the value from the colu

How to fix a null object reference on document snapshot

I have an program where the MainActivity display the name and the email of the user on top of the screen by using document snapshot that been stored in firestor

org.apache.commons.mail.util.MimeMessageParser never ends parsing

I have some code to parse incoming mails. I use org.apache.commons.mail.util.MimeMessageParser for this.The problem occurs in the following method: private Stri

Make a dataframe avaliable until it's update [duplicate]

I have a Flask application with reads a dataframe and provide it in a service. The problem is that I need to update it (only a reading from s

Form validation if user submits a specific phrase

in the process of adding a sign up form to a website. The form will have first name, last name, and email text fields. I want the form to also have a text strin

Show CollectionView Grouping not working in Xamarin

I have an article here about showing Data Groups from Preferences . As per everyone's input I switched to CollectionView. I have consulted the article https://d

How can create merge adapter class in android kotlin

How can create merge adapter class in android Kotlin i have two class one class contain header other class contain image card how can create merge adapter class

Getting error 'NoneType' object has no attribute 'read' in python for image processing image_dataframe['image']

I am working on image classification using CNN. I am using below source code for that task. I am stuck with this error : AttributeError: 'NoneType' object has